import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home'
import Login from '@/pages/Login'
import register from '@/pages/info/register'
// import Users from '@/pages/users'
// import UsersEdit from '@/pages/users/edit'
// import UsersNew from '@/pages/users/new'
import AllRouter from '@/router/all.router'
Vue.use(Router)
var routers = {
  routes: [
    {
      path: '/',
      component: Home,
      children: AllRouter
    },
    {
      path:"/login",
      component: Login,
    },
    {
      path:"/register",
      component: register,
    }
  ]
}

export default new Router(routers)
